home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1649 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: brazerko.com!szarka
  2. From: szarka@brazerko.com (Szarka)
  3. Newsgroups: comp.lang.c++
  4. Subject: Beginner Questions
  5. Message-ID: <03e46273@brazerko.com>
  6. Date: Thu, 11 Jan 96 18:37:38 -0500
  7. Organization: Brazerko Communications
  8.  
  9.  -=> guusl@eiffel.com spake unto All, saying <=-
  10.  
  11.  > Second, what is the "inline" function do?
  12.  
  13.  gu> When a function is declared as `inline' each call to that function
  14.  gu> will not result in an actual call, but the code of that function will
  15.  gu> be copied to the spot in the program where the call is made. Think of
  16.  gu> it as a macro that is defined through `#define'.
  17.  
  18. Except that--and please check my understanding here as I'm a beginner,
  19. too--recursive functions cannot be completely expanded inline.  Only the
  20. first iteration is expanded.
  21.  
  22.  
  23. ... Life would be much easier if I had the source code.
  24.  
  25.  
  26. -- 
  27.  
  28. .-------------------------------------------------------------------------.
  29. | Brazerko Communications --- +1 860 892 INET ------- szarka@brazerko.com |
  30. | A2 B4 B9 2C 6A 6F BE C8 ---- Robert Szarka ---- A4 0A 00 C9 8A 13 FF 76 |
  31. | http://www.mindport.net/~szarka/home.html ----- mrnoise@econs.umass.edu |
  32. `-------------------------------------------------------------------------'
  33.  
  34.